/*
 * @Description:
 * @version:
 * @Author: 尹鹏孝
 * @Date: 2022-12-20 08:48:46
 * @LastEditors: 尹鹏孝
 * @LastEditTime: 2022-12-20 08:55:08
 */
export default {
    install: (app,options) => {
        app.config.globalProperties.$translate = (key) => {
            return key.split('.').reduce((o, i) => {
                if (o) {
                    return o[i]
                }

            },options)
        }
         app.provide('i18n', options)
    }
}